package Work5;

public class PlayDemo {
    public static void main(String[] args) {
        usePlayGame(new Play() {
            @Override
            public String playGame(String gameName) {
                return gameName;
            }
        });
    }
    public static void usePlayGame(Play p){
        String s = p.playGame("绝地求生");
        System.out.println(s);
    }
}


interface Play{
    String playGame(String gameName);
}